var NAVTREE =
[
  [ "CASP", "index.html", [
    [ "Related Pages", "pages.html", [
      [ "Todo List", "todo.html", null ]
    ] ],
    [ "Class List", "annotated.html", [
      [ "ACTD::Act_Data", "struct_a_c_t_d_1_1_act___data.html", null ],
      [ "CC_App", "class_c_c___app.html", null ],
      [ "CC_Block", "class_c_c___block.html", null ],
      [ "CC_Cmd", "class_c_c___cmd.html", null ],
      [ "CC_Draw", "class_c_c___draw.html", null ],
      [ "CC_DrawSpace", "class_c_c___draw_space.html", null ],
      [ "CC_Err", "class_c_c___err.html", null ],
      [ "CC_GIP", "class_c_c___g_i_p.html", null ],
      [ "CC_Graphic", "class_c_c___graphic.html", null ],
      [ "CC_HDL2D", "class_c_c___h_d_l2_d.html", null ],
      [ "CC_HDL2DN", "class_c_c___h_d_l2_d_n.html", null ],
      [ "CC_Image", "class_c_c___image.html", null ],
      [ "CC_Item", "class_c_c___item.html", null ],
      [ "CC_L2D", "class_c_c___l2_d.html", null ],
      [ "CC_L2DN", "class_c_c___l2_d_n.html", null ],
      [ "CC_Layer", "class_c_c___layer.html", null ],
      [ "CC_PlgInTpl", "class_c_c___plg_in_tpl.html", null ],
      [ "CC_PlugIn", "class_c_c___plug_in.html", null ],
      [ "CC_Selection", "class_c_c___selection.html", null ],
      [ "CC_Cmd::CmdMouse", "struct_c_c___cmd_1_1_cmd_mouse.html", null ],
      [ "CstAct", "class_cst_act.html", null ],
      [ "CstActMdl", "class_cst_act_mdl.html", null ],
      [ "CstActPrp", "struct_cst_act_prp.html", null ],
      [ "CstDlg", "class_cst_dlg.html", null ],
      [ "CstMnu", "class_cst_mnu.html", null ],
      [ "CstMnuMdl", "class_cst_mnu_mdl.html", null ],
      [ "CstMnuPrp", "struct_cst_mnu_prp.html", null ],
      [ "CstTlb", "class_cst_tlb.html", null ],
      [ "CstTlbMdl", "class_cst_tlb_mdl.html", null ],
      [ "CstTlbPrp", "struct_cst_tlb_prp.html", null ],
      [ "CustMdl", "class_cust_mdl.html", null ],
      [ "EditorDel", "class_editor_del.html", null ],
      [ "CCERR::EItem", "struct_c_c_e_r_r_1_1_e_item.html", null ],
      [ "ErrDlg", "class_err_dlg.html", null ],
      [ "ExplItem", "class_expl_item.html", null ],
      [ "ExplModel", "class_expl_model.html", null ],
      [ "ExplNode", "class_expl_node.html", null ],
      [ "GI_Line", "class_g_i___line.html", null ],
      [ "GIP::ITEM", "struct_g_i_p_1_1_i_t_e_m.html", null ],
      [ "MainWindow", "class_main_window.html", null ],
      [ "MdiDraw", "class_mdi_draw.html", null ],
      [ "OGLDraw", "class_o_g_l_draw.html", null ],
      [ "PAG_Bool", "class_p_a_g___bool.html", null ],
      [ "PAG_Col", "class_p_a_g___col.html", null ],
      [ "PAG_Dbl", "class_p_a_g___dbl.html", null ],
      [ "PAG_Int", "class_p_a_g___int.html", null ],
      [ "PAG_Str", "class_p_a_g___str.html", null ],
      [ "PAG_T2Dbl", "class_p_a_g___t2_dbl.html", null ],
      [ "PAG_T2Int", "class_p_a_g___t2_int.html", null ],
      [ "PAG_T3Dbl", "class_p_a_g___t3_dbl.html", null ],
      [ "PAG_T3Int", "class_p_a_g___t3_int.html", null ],
      [ "PEX_bool", "class_p_e_x__bool.html", null ],
      [ "PEX_Col", "class_p_e_x___col.html", null ],
      [ "PEX_Dbl", "class_p_e_x___dbl.html", null ],
      [ "PEX_Enum", "class_p_e_x___enum.html", null ],
      [ "PEX_Hd", "class_p_e_x___hd.html", null ],
      [ "PEX_Int", "class_p_e_x___int.html", null ],
      [ "PEX_LnPtrn", "class_p_e_x___ln_ptrn.html", null ],
      [ "PEX_LnW", "class_p_e_x___ln_w.html", null ],
      [ "PEX_Str", "class_p_e_x___str.html", null ],
      [ "PlgEnvel", "class_plg_envel.html", null ],
      [ "plgin_sample", "classplgin__sample.html", null ],
      [ "PlgInOpts", "class_plg_in_opts.html", null ],
      [ "PlgMan", "class_plg_man.html", null ],
      [ "PlgMdl", "class_plg_mdl.html", null ],
      [ "PrpAgreg", "class_prp_agreg.html", null ],
      [ "PrpHost", "class_prp_host.html", null ],
      [ "PrpMdl", "class_prp_mdl.html", null ],
      [ "PrpNode", "class_prp_node.html", null ],
      [ "PrpTpl", "class_prp_tpl.html", null ],
      [ "PrpView", "class_prp_view.html", null ],
      [ "StgsGui", "class_stgs_gui.html", null ],
      [ "VirType", "class_vir_type.html", null ]
    ] ],
    [ "Class Index", "classes.html", null ],
    [ "Class Hierarchy", "hierarchy.html", [
      [ "ACTD::Act_Data", "struct_a_c_t_d_1_1_act___data.html", null ],
      [ "CC_App", "class_c_c___app.html", null ],
      [ "CC_Cmd", "class_c_c___cmd.html", null ],
      [ "CC_Err", "class_c_c___err.html", null ],
      [ "CC_HDL2D", "class_c_c___h_d_l2_d.html", [
        [ "CC_HDL2DN", "class_c_c___h_d_l2_d_n.html", null ]
      ] ],
      [ "CC_L2D", "class_c_c___l2_d.html", [
        [ "CC_GIP", "class_c_c___g_i_p.html", null ],
        [ "CC_Item", "class_c_c___item.html", [
          [ "CC_Graphic", "class_c_c___graphic.html", [
            [ "GI_Line", "class_g_i___line.html", null ]
          ] ]
        ] ],
        [ "CC_L2DN", "class_c_c___l2_d_n.html", [
          [ "CC_Block", "class_c_c___block.html", null ],
          [ "CC_Draw", "class_c_c___draw.html", null ],
          [ "CC_DrawSpace", "class_c_c___draw_space.html", null ],
          [ "CC_Image", "class_c_c___image.html", null ],
          [ "CC_Layer", "class_c_c___layer.html", null ],
          [ "CC_PlugIn", "class_c_c___plug_in.html", null ]
        ] ],
        [ "CstAct", "class_cst_act.html", null ],
        [ "CstMnu", "class_cst_mnu.html", null ],
        [ "CstTlb", "class_cst_tlb.html", null ],
        [ "ExplItem", "class_expl_item.html", [
          [ "ExplNode", "class_expl_node.html", null ]
        ] ],
        [ "PrpTpl", "class_prp_tpl.html", [
          [ "PEX_bool", "class_p_e_x__bool.html", null ],
          [ "PEX_Dbl", "class_p_e_x___dbl.html", null ],
          [ "PEX_Enum", "class_p_e_x___enum.html", null ],
          [ "PEX_Int", "class_p_e_x___int.html", null ],
          [ "PEX_LnPtrn", "class_p_e_x___ln_ptrn.html", null ],
          [ "PEX_LnW", "class_p_e_x___ln_w.html", null ],
          [ "PEX_Str", "class_p_e_x___str.html", null ],
          [ "PrpNode", "class_prp_node.html", [
            [ "PEX_Col", "class_p_e_x___col.html", null ],
            [ "PEX_Hd", "class_p_e_x___hd.html", null ]
          ] ]
        ] ]
      ] ],
      [ "CC_PlgInTpl", "class_c_c___plg_in_tpl.html", [
        [ "plgin_sample", "classplgin__sample.html", null ]
      ] ],
      [ "CC_Selection", "class_c_c___selection.html", null ],
      [ "CC_Cmd::CmdMouse", "struct_c_c___cmd_1_1_cmd_mouse.html", null ],
      [ "CstActPrp", "struct_cst_act_prp.html", null ],
      [ "CstDlg", "class_cst_dlg.html", null ],
      [ "CstMnuPrp", "struct_cst_mnu_prp.html", null ],
      [ "CstTlbPrp", "struct_cst_tlb_prp.html", null ],
      [ "CustMdl", "class_cust_mdl.html", [
        [ "CstActMdl", "class_cst_act_mdl.html", null ],
        [ "CstMnuMdl", "class_cst_mnu_mdl.html", null ],
        [ "CstTlbMdl", "class_cst_tlb_mdl.html", null ]
      ] ],
      [ "EditorDel", "class_editor_del.html", null ],
      [ "CCERR::EItem", "struct_c_c_e_r_r_1_1_e_item.html", null ],
      [ "ErrDlg", "class_err_dlg.html", null ],
      [ "ExplModel", "class_expl_model.html", null ],
      [ "GIP::ITEM", "struct_g_i_p_1_1_i_t_e_m.html", null ],
      [ "MainWindow", "class_main_window.html", null ],
      [ "MdiDraw", "class_mdi_draw.html", null ],
      [ "OGLDraw", "class_o_g_l_draw.html", null ],
      [ "PlgInOpts", "class_plg_in_opts.html", null ],
      [ "PlgMan", "class_plg_man.html", null ],
      [ "PlgMdl", "class_plg_mdl.html", null ],
      [ "PrpAgreg", "class_prp_agreg.html", [
        [ "PAG_Bool", "class_p_a_g___bool.html", null ],
        [ "PAG_Col", "class_p_a_g___col.html", null ],
        [ "PAG_Dbl", "class_p_a_g___dbl.html", null ],
        [ "PAG_Int", "class_p_a_g___int.html", null ],
        [ "PAG_Str", "class_p_a_g___str.html", null ],
        [ "PAG_T2Dbl", "class_p_a_g___t2_dbl.html", null ],
        [ "PAG_T2Int", "class_p_a_g___t2_int.html", null ],
        [ "PAG_T3Dbl", "class_p_a_g___t3_dbl.html", null ],
        [ "PAG_T3Int", "class_p_a_g___t3_int.html", null ]
      ] ],
      [ "PrpHost", "class_prp_host.html", [
        [ "CC_Block", "class_c_c___block.html", null ],
        [ "CC_DrawSpace", "class_c_c___draw_space.html", null ],
        [ "CC_Item", "class_c_c___item.html", null ],
        [ "CC_Layer", "class_c_c___layer.html", null ]
      ] ],
      [ "PrpMdl", "class_prp_mdl.html", null ],
      [ "PrpView", "class_prp_view.html", null ],
      [ "StgsGui", "class_stgs_gui.html", null ],
      [ "VirType", "class_vir_type.html", [
        [ "CC_PlugIn", "class_c_c___plug_in.html", null ],
        [ "PlgEnvel", "class_plg_envel.html", null ]
      ] ]
    ] ],
    [ "Class Members", "functions.html", null ],
    [ "Namespace List", "namespaces.html", [
      [ "ACTD", "namespace_a_c_t_d.html", null ],
      [ "CCERR", "namespace_c_c_e_r_r.html", null ],
      [ "GIP", "namespace_g_i_p.html", null ],
      [ "PRD_A", "namespace_p_r_d___a.html", null ],
      [ "PRD_DK", "namespace_p_r_d___d_k.html", null ],
      [ "PRD_M", "namespace_p_r_d___m.html", null ],
      [ "PRD_TB", "namespace_p_r_d___t_b.html", null ],
      [ "STYSH", "namespace_s_t_y_s_h.html", null ],
      [ "Ui", "namespace_ui.html", null ]
    ] ],
    [ "Namespace Members", "namespacemembers.html", null ],
    [ "File List", "files.html", [
      [ "auto_acindex.h", "auto__acindex_8h.html", null ],
      [ "auto_actions.h", "auto__actions_8h.html", null ],
      [ "CC_App.cc", "_c_c___app_8cc.html", null ],
      [ "CC_App.h", "_c_c___app_8h.html", null ],
      [ "CC_Block.cc", "_c_c___block_8cc.html", null ],
      [ "CC_Block.h", "_c_c___block_8h.html", null ],
      [ "CC_Cmd.cc", "_c_c___cmd_8cc.html", null ],
      [ "CC_Cmd.h", "_c_c___cmd_8h.html", null ],
      [ "CC_Draw.cc", "_c_c___draw_8cc.html", null ],
      [ "CC_Draw.h", "_c_c___draw_8h.html", null ],
      [ "CC_DrawSpace.cc", "_c_c___draw_space_8cc.html", null ],
      [ "CC_DrawSpace.h", "_c_c___draw_space_8h.html", null ],
      [ "CC_Err.cc", "_c_c___err_8cc.html", null ],
      [ "CC_Err.h", "_c_c___err_8h.html", null ],
      [ "CC_Graphic.cc", "_c_c___graphic_8cc.html", null ],
      [ "CC_Graphic.h", "_c_c___graphic_8h.html", null ],
      [ "CC_GraphItemProp.cc", "_c_c___graph_item_prop_8cc.html", null ],
      [ "CC_GraphItemProp.h", "_c_c___graph_item_prop_8h.html", null ],
      [ "CC_Image.cc", "_c_c___image_8cc.html", null ],
      [ "CC_Image.h", "_c_c___image_8h.html", null ],
      [ "CC_Item.cc", "_c_c___item_8cc.html", null ],
      [ "CC_Item.h", "_c_c___item_8h.html", null ],
      [ "cc_l2d.cc", "cc__l2d_8cc.html", null ],
      [ "cc_l2d.h", "cc__l2d_8h.html", null ],
      [ "cc_l2dn.cc", "cc__l2dn_8cc.html", null ],
      [ "cc_l2dn.h", "cc__l2dn_8h.html", null ],
      [ "CC_Layer.cc", "_c_c___layer_8cc.html", null ],
      [ "CC_Layer.h", "_c_c___layer_8h.html", null ],
      [ "CC_PlgInTpl.h", "_c_c___plg_in_tpl_8h.html", null ],
      [ "CC_PlugIn.cc", "_c_c___plug_in_8cc.html", null ],
      [ "CC_PlugIn.h", "_c_c___plug_in_8h.html", null ],
      [ "CC_Selection.cc", "_c_c___selection_8cc.html", null ],
      [ "CC_Selection.h", "_c_c___selection_8h.html", null ],
      [ "cst_act.cc", "cst__act_8cc.html", null ],
      [ "cst_act.h", "cst__act_8h.html", null ],
      [ "cst_actmdl.cc", "cst__actmdl_8cc.html", null ],
      [ "cst_actmdl.h", "cst__actmdl_8h.html", null ],
      [ "cst_mnu.cc", "cst__mnu_8cc.html", null ],
      [ "cst_mnu.h", "cst__mnu_8h.html", null ],
      [ "cst_mnumdl.cc", "cst__mnumdl_8cc.html", null ],
      [ "cst_mnumdl.h", "cst__mnumdl_8h.html", null ],
      [ "cst_tlb.cc", "cst__tlb_8cc.html", null ],
      [ "cst_tlb.h", "cst__tlb_8h.html", null ],
      [ "cst_tlbmdl.cc", "cst__tlbmdl_8cc.html", null ],
      [ "cst_tlbmdl.h", "cst__tlbmdl_8h.html", null ],
      [ "cstdlg.cc", "cstdlg_8cc.html", null ],
      [ "cstdlg.h", "cstdlg_8h.html", null ],
      [ "CustMdl.cc", "_cust_mdl_8cc.html", null ],
      [ "CustMdl.h", "_cust_mdl_8h.html", null ],
      [ "ErrDlg.cc", "_err_dlg_8cc.html", null ],
      [ "ErrDlg.h", "_err_dlg_8h.html", null ],
      [ "ExplMdl.cc", "_expl_mdl_8cc.html", null ],
      [ "ExplMdl.h", "_expl_mdl_8h.html", null ],
      [ "GI_Line.cc", "_g_i___line_8cc.html", null ],
      [ "GI_Line.h", "_g_i___line_8h.html", null ],
      [ "main.cc", "main_8cc.html", null ],
      [ "main.h", "main_8h.html", null ],
      [ "MainWindow.cc", "_main_window_8cc.html", null ],
      [ "MainWindow.h", "_main_window_8h.html", null ],
      [ "MdiDraw.cc", "_mdi_draw_8cc.html", null ],
      [ "MdiDraw.h", "_mdi_draw_8h.html", null ],
      [ "OGLDraw.cc", "_o_g_l_draw_8cc.html", null ],
      [ "OGLDraw.h", "_o_g_l_draw_8h.html", null ],
      [ "PAG_Bool.cc", "_p_a_g___bool_8cc.html", null ],
      [ "PAG_Bool.h", "_p_a_g___bool_8h.html", null ],
      [ "PAG_Col.cc", "_p_a_g___col_8cc.html", null ],
      [ "PAG_Col.h", "_p_a_g___col_8h.html", null ],
      [ "PAG_Dbl.cc", "_p_a_g___dbl_8cc.html", null ],
      [ "PAG_Dbl.h", "_p_a_g___dbl_8h.html", null ],
      [ "PAG_Int.cc", "_p_a_g___int_8cc.html", null ],
      [ "PAG_Int.h", "_p_a_g___int_8h.html", null ],
      [ "PAG_Str.cc", "_p_a_g___str_8cc.html", null ],
      [ "PAG_Str.h", "_p_a_g___str_8h.html", null ],
      [ "PAG_T2Dbl.cc", "_p_a_g___t2_dbl_8cc.html", null ],
      [ "PAG_T2Dbl.h", "_p_a_g___t2_dbl_8h.html", null ],
      [ "PAG_T2Int.cc", "_p_a_g___t2_int_8cc.html", null ],
      [ "PAG_T2Int.h", "_p_a_g___t2_int_8h.html", null ],
      [ "PAG_T3Dbl.cc", "_p_a_g___t3_dbl_8cc.html", null ],
      [ "PAG_T3Dbl.h", "_p_a_g___t3_dbl_8h.html", null ],
      [ "PAG_T3Int.cc", "_p_a_g___t3_int_8cc.html", null ],
      [ "PAG_T3Int.h", "_p_a_g___t3_int_8h.html", null ],
      [ "plgin_sample.cc", "plgin__sample_8cc.html", null ],
      [ "plgin_sample.h", "plgin__sample_8h.html", null ],
      [ "plginopts.cc", "plginopts_8cc.html", null ],
      [ "plginopts.h", "plginopts_8h.html", null ],
      [ "plgman.cc", "plgman_8cc.html", null ],
      [ "plgman.h", "plgman_8h.html", null ],
      [ "plgmdl.cc", "plgmdl_8cc.html", null ],
      [ "plgmdl.h", "plgmdl_8h.html", null ],
      [ "PrpAgreg.cc", "_prp_agreg_8cc.html", null ],
      [ "PrpAgreg.h", "_prp_agreg_8h.html", null ],
      [ "prpedt.cc", "prpedt_8cc.html", null ],
      [ "prpedt.h", "prpedt_8h.html", null ],
      [ "prpex_bool.cc", "prpex__bool_8cc.html", null ],
      [ "prpex_bool.h", "prpex__bool_8h.html", null ],
      [ "prpex_color.cc", "prpex__color_8cc.html", null ],
      [ "prpex_color.h", "prpex__color_8h.html", null ],
      [ "prpex_double.cc", "prpex__double_8cc.html", null ],
      [ "prpex_double.h", "prpex__double_8h.html", null ],
      [ "prpex_enum.cc", "prpex__enum_8cc.html", null ],
      [ "prpex_enum.h", "prpex__enum_8h.html", null ],
      [ "prpex_header.cc", "prpex__header_8cc.html", null ],
      [ "prpex_header.h", "prpex__header_8h.html", null ],
      [ "prpex_integer.cc", "prpex__integer_8cc.html", null ],
      [ "prpex_integer.h", "prpex__integer_8h.html", null ],
      [ "prpex_line_ptrn.cc", "prpex__line__ptrn_8cc.html", null ],
      [ "prpex_line_ptrn.h", "prpex__line__ptrn_8h.html", null ],
      [ "prpex_line_w.cc", "prpex__line__w_8cc.html", null ],
      [ "prpex_line_w.h", "prpex__line__w_8h.html", null ],
      [ "prpex_string.cc", "prpex__string_8cc.html", null ],
      [ "prpex_string.h", "prpex__string_8h.html", null ],
      [ "PrpHost.cc", "_prp_host_8cc.html", null ],
      [ "PrpHost.h", "_prp_host_8h.html", null ],
      [ "prpmdl.cc", "prpmdl_8cc.html", null ],
      [ "prpmdl.h", "prpmdl_8h.html", null ],
      [ "prptpl.cc", "prptpl_8cc.html", null ],
      [ "prptpl.h", "prptpl_8h.html", null ],
      [ "prpview.cc", "prpview_8cc.html", null ],
      [ "prpview.h", "prpview_8h.html", null ],
      [ "Settings.cc", "_settings_8cc.html", null ],
      [ "Settings.h", "_settings_8h.html", null ],
      [ "virtype.h", "virtype_8h.html", null ]
    ] ],
    [ "File Members", "globals.html", null ]
  ] ]
];

function createIndent(o,domNode,node,level)
{
  if (node.parentNode && node.parentNode.parentNode)
  {
    createIndent(o,domNode,node.parentNode,level+1);
  }
  var imgNode = document.createElement("img");
  if (level==0 && node.childrenData)
  {
    node.plus_img = imgNode;
    node.expandToggle = document.createElement("a");
    node.expandToggle.href = "javascript:void(0)";
    node.expandToggle.onclick = function() 
    {
      if (node.expanded) 
      {
        $(node.getChildrenUL()).slideUp("fast");
        if (node.isLast)
        {
          node.plus_img.src = node.relpath+"ftv2plastnode.png";
        }
        else
        {
          node.plus_img.src = node.relpath+"ftv2pnode.png";
        }
        node.expanded = false;
      } 
      else 
      {
        expandNode(o, node, false);
      }
    }
    node.expandToggle.appendChild(imgNode);
    domNode.appendChild(node.expandToggle);
  }
  else
  {
    domNode.appendChild(imgNode);
  }
  if (level==0)
  {
    if (node.isLast)
    {
      if (node.childrenData)
      {
        imgNode.src = node.relpath+"ftv2plastnode.png";
      }
      else
      {
        imgNode.src = node.relpath+"ftv2lastnode.png";
        domNode.appendChild(imgNode);
      }
    }
    else
    {
      if (node.childrenData)
      {
        imgNode.src = node.relpath+"ftv2pnode.png";
      }
      else
      {
        imgNode.src = node.relpath+"ftv2node.png";
        domNode.appendChild(imgNode);
      }
    }
  }
  else
  {
    if (node.isLast)
    {
      imgNode.src = node.relpath+"ftv2blank.png";
    }
    else
    {
      imgNode.src = node.relpath+"ftv2vertline.png";
    }
  }
  imgNode.border = "0";
}

function newNode(o, po, text, link, childrenData, lastNode)
{
  var node = new Object();
  node.children = Array();
  node.childrenData = childrenData;
  node.depth = po.depth + 1;
  node.relpath = po.relpath;
  node.isLast = lastNode;

  node.li = document.createElement("li");
  po.getChildrenUL().appendChild(node.li);
  node.parentNode = po;

  node.itemDiv = document.createElement("div");
  node.itemDiv.className = "item";

  node.labelSpan = document.createElement("span");
  node.labelSpan.className = "label";

  createIndent(o,node.itemDiv,node,0);
  node.itemDiv.appendChild(node.labelSpan);
  node.li.appendChild(node.itemDiv);

  var a = document.createElement("a");
  node.labelSpan.appendChild(a);
  node.label = document.createTextNode(text);
  a.appendChild(node.label);
  if (link) 
  {
    a.href = node.relpath+link;
  } 
  else 
  {
    if (childrenData != null) 
    {
      a.className = "nolink";
      a.href = "javascript:void(0)";
      a.onclick = node.expandToggle.onclick;
      node.expanded = false;
    }
  }

  node.childrenUL = null;
  node.getChildrenUL = function() 
  {
    if (!node.childrenUL) 
    {
      node.childrenUL = document.createElement("ul");
      node.childrenUL.className = "children_ul";
      node.childrenUL.style.display = "none";
      node.li.appendChild(node.childrenUL);
    }
    return node.childrenUL;
  };

  return node;
}

function showRoot()
{
  var headerHeight = $("#top").height();
  var footerHeight = $("#nav-path").height();
  var windowHeight = $(window).height() - headerHeight - footerHeight;
  navtree.scrollTo('#selected',0,{offset:-windowHeight/2});
}

function expandNode(o, node, imm)
{
  if (node.childrenData && !node.expanded) 
  {
    if (!node.childrenVisited) 
    {
      getNode(o, node);
    }
    if (imm)
    {
      $(node.getChildrenUL()).show();
    } 
    else 
    {
      $(node.getChildrenUL()).slideDown("fast",showRoot);
    }
    if (node.isLast)
    {
      node.plus_img.src = node.relpath+"ftv2mlastnode.png";
    }
    else
    {
      node.plus_img.src = node.relpath+"ftv2mnode.png";
    }
    node.expanded = true;
  }
}

function getNode(o, po)
{
  po.childrenVisited = true;
  var l = po.childrenData.length-1;
  for (var i in po.childrenData) 
  {
    var nodeData = po.childrenData[i];
    po.children[i] = newNode(o, po, nodeData[0], nodeData[1], nodeData[2],
        i==l);
  }
}

function findNavTreePage(url, data)
{
  var nodes = data;
  var result = null;
  for (var i in nodes) 
  {
    var d = nodes[i];
    if (d[1] == url) 
    {
      return new Array(i);
    }
    else if (d[2] != null) // array of children
    {
      result = findNavTreePage(url, d[2]);
      if (result != null) 
      {
        return (new Array(i).concat(result));
      }
    }
  }
  return null;
}

function initNavTree(toroot,relpath)
{
  var o = new Object();
  o.toroot = toroot;
  o.node = new Object();
  o.node.li = document.getElementById("nav-tree-contents");
  o.node.childrenData = NAVTREE;
  o.node.children = new Array();
  o.node.childrenUL = document.createElement("ul");
  o.node.getChildrenUL = function() { return o.node.childrenUL; };
  o.node.li.appendChild(o.node.childrenUL);
  o.node.depth = 0;
  o.node.relpath = relpath;

  getNode(o, o.node);

  o.breadcrumbs = findNavTreePage(toroot, NAVTREE);
  if (o.breadcrumbs == null)
  {
    o.breadcrumbs = findNavTreePage("index.html",NAVTREE);
  }
  if (o.breadcrumbs != null && o.breadcrumbs.length>0)
  {
    var p = o.node;
    for (var i in o.breadcrumbs) 
    {
      var j = o.breadcrumbs[i];
      p = p.children[j];
      expandNode(o,p,true);
    }
    p.itemDiv.className = p.itemDiv.className + " selected";
    p.itemDiv.id = "selected";
    $(window).load(showRoot);
  }
}

